<template>
  <div>
    <div class="list-title" v-for="(item,index) of list" :key="index">
      <span class="item-title-icon border-bottom"></span>
        {{item.title}}
      <detail-list v-if="item.children" :list="item.children"></detail-list>
    </div>
  </div>
</template>
<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
}
</script>
<style lang="stylus" scoped>
.list-title
  line-height .8rem
  font-size .32rem
  padding 0 .2rem
  .item-title-icon
    position relative
    left .1rem
    top .08rem
    display: inline-block
    width: .36rem;
    height: .36rem;
    background: url(https://s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat;
    margin-right: .1rem;
    background-size: .4rem 3rem;
</style>
